<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Ramda</title>
</head>
<body>
    <script src="../ramda.min.js"></script>
    <script>
        let arr = [4, 45];
        let obj = {a: 10, b: 20}
        let map = R.addIndex(R.map);
        map((val, index) => {
            // 4 0
            // 45 1
            console.log(val, index);
        }, arr);
        
        map((val, index) => {
            // 10 0
            // 20 1
            console.log(val, index);
        }, obj);
    </script>
</body>
</html>